package repertory.android.ericchen.androidrepertory.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import repertory.android.ericchen.androidrepertory.R;
import repertory.android.ericchen.androidrepertory.util.D2NavigationUtils;

/**
 * className:
 * author: Ericchen
 * description:自定义View测试
 * date: 2017/3/9 16:50
 * update: 2017/3/9
 * version:
 */
public class ViewActivity extends Activity implements View.OnClickListener{
    private Button BtnFlowView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view);
        BtnFlowView = (Button)findViewById(R.id.btn_flow_view);
        BtnFlowView.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.btn_flow_view:
                D2NavigationUtils.startForActivity(getApplicationContext(), FlowViewActivity.class);
                break;
        }
    }
}
